package com.biz.hunter.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.biz.hunter.dao.InterViewDAO;
import com.biz.hunter.db.entity.Interview;
import com.biz.hunter.service.IInterviewService;
import java.util.List;

@Service
public class InterviewService implements IInterviewService
{

	@Autowired
	InterViewDAO itviewDAO;
	
	@Override
	public Interview getById(int id) {
		return itviewDAO.getById(id);
	}
	
	@Override
	public List<Interview> searchInterview(int recommendId) {
		return itviewDAO.getByKey(recommendId);
	}

	@Override
	public int createInterview(Interview Itview) {
		Long result = itviewDAO.save(Itview);
		return result.intValue();
	}

}
